﻿using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using WebAnalyser.Api;

namespace WebAnalyser.CSS
{
    public class Options
    {
        public TreeViewItem GetSettingsTreeView()
        {
            TreeViewItem headChild = new TreeViewItem();
            headChild.Header = "CSS";
            TreeViewItem subChild = new TreeViewItem();
            subChild.Header = "test";
            subChild.Selected += new RoutedEventHandler(subChild_Selected);
            headChild.Items.Add(subChild);
            return headChild;
        }

        public List<UIElement> GetGridElements()
        {
            List<UIElement> elemenstList = new List<UIElement>();

            return elemenstList;
        }

        void TriggerChanges(object sender, RoutedEventArgs e)
        {
            Events.Instance.TriggerChangesPending();
        }

        void subChild_Selected(object sender, RoutedEventArgs e)
        {
            Events.Instance.TriggerGridUpdate("hello from css plugin");
        }
    }
}